{% extends "base.html" %}
{% import "_macros.html" as macros %}

{% block title %}Flask - {{ title }} {{ user.username }}{% endblock %}

{% block page_content %}
    <div class="page-header">
        <h1>{{ title }} {{ user.username }}</h1>
    </div>
    <table class="table table-hover followers">
        <thead>
        <tr>
            <th>User</th>
            <th>Since</th>
        </tr>
        </thead>
        <thead>
        {% for follow in follows %}
            {% if follow.user != user %}
                <tr>
                    <td>
                        <a href="{{ url_for('.user',username = follow.user.username) }}">
                            <img class="img-rounded" src="{{ follow.user.gravatar(size=32) }}">
                            {{ follow.user.username }}
                        </a>
                    </td>
                    <td>{{ moment(follow.timestamp).format('L') }}</td>
                </tr>
            {% endif %}
        {% endfor %}
        </thead>
    </table>
    <div class="pagination">
        {{ macros.pagination_widget(pagination,endpoint,username = user.username) }}
    </div>
{% endblock %}
